<script lang="ts" setup>
import { ref } from 'vue';
import NavHeader from './navHeader/index.vue';
import NavSide from './navSide/index.vue';

const isCollapse = ref(false);
</script>

<template>
  <el-container class="page">
    <el-aside width="auto" class="page-aside">
      <NavSide :collapse="isCollapse"></NavSide>
    </el-aside>
    <el-container>
      <el-header>
        <NavHeader v-model:collapse="isCollapse"></NavHeader>
      </el-header>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<style lang="scss" scoped>
.page {
  :deep(svg) {
    width: 1rem;
    height: 1rem;
  }
}
.page-aside {
  :deep(.el-menu) {
    width: 250px;
  }
  :deep(.el-menu--collapse) {
    width: 64px !important;
  }
}
</style>
